package expertise.titan.schema.vertex;

import java.util.Date;

import expertise.titan.annotation.VertexKey;
import expertise.titan.schema.TitanSchemaObject;

public class AbstractVertexSchema implements TitanSchemaObject {

    @VertexKey(value = "name", name = true)
    protected String name;

    @VertexKey(value = "type", type = true)
    protected String type;

    @VertexKey("dateAdded")
    protected Date dateAdded;

    public AbstractVertexSchema(final String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getType() {
        return type;
    }

    public Date getDateAdded() {
        return dateAdded;
    }

    public void setDateAdded(Date dateAdded) {
        this.dateAdded = dateAdded;
    }

}
